.float-element {
  user-select: none;
  position: absolute;
  top: 0;
  left: 0;
  border: 1px solid var(--borderColor);
  background-color: var(--white);
  z-index: var(--lowZIndex);
}

.float-element.active {
  border-style: dashed;
  border-style: dashed;
  cursor: move;
  z-index: var(--middleZIndex);
}

.float-element-mask {
  display: none;
  top: 0;
  bottom: -30px;
  left: 0;
  right: 0;
}
.float-element-mask.active {
  position: absolute;
  display: block;
}

.context-menu {
  position: fixed;
  background-color: var(--white);
  border-radius: var(--borderRadius);
  min-width: 150px;
  z-index: var(--middleZIndex);
}

.context-menu > button {
  width: 100%;
  background-color: var(--white);
}

.title {
  text-align: center;
  font-weight: bold;
  width: 98%;
  border: none;
  padding: var(--tinyPadding);
  z-index: var(--middleZIndex);
}

.image {
  width: 100%;
  height: 100%;
  display: block;
}
.resize-handler {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  box-sizing: content-box;
}
.resize-handler-rect {
  width: 100%;
  height: 16px;
}
.scale-dot {
  border-radius: 50%;
  background-color: var(--white);
  width: 10px;
  height: 10px;
  border: 1px solid var(--borderColor);
  box-sizing: content-box;
}
.rotate-icon {
  color: var(--white);
  background-color: var(--borderColor);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top {
  top: -16px;
  left: 50%;
  margin-left: -16px;
  cursor: ns-resize;
}
.bottom {
  bottom: -16px;
  left: 50%;
  margin-left: -16px;
  cursor: ns-resize;
}
.top-right {
  top: -16px;
  right: -16px;
  cursor: nesw-resize;
}
.top-left {
  top: -16px;
  left: -16px;
  cursor: nwse-resize;
}
.bottom-right {
  bottom: -16px;
  right: -16px;
  cursor: nwse-resize;
}
.bottom-left {
  bottom: -16px;
  left: -16px;
  cursor: nesw-resize;
}
.right {
  right: -16px;
  top: 50%;
  cursor: ew-resize;
  margin-top: -10px;
}
.left {
  left: -16px;
  top: 50%;
  margin-top: -16px;
  cursor: ew-resize;
}
.rotate {
  top: -48px;
  left: 50%;
  margin-left: -16px;
  cursor: grabbing;
}
.rotate::after {
  position: absolute;
  content: '';
  top: 14px;
  height: 28px;
  width: 1px;
  background-color: var(--borderColor);
}

.chart-type-select {
  width: 200px;
}
